ostree: Add collection and ref bindings to metadata on commit
authorKrzesimir Nowak <krzesimir@kinvolk.io>
Thu, 22 Jun 2017 19:49:22 +0000 (21:49 +0200)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 6 Jul 2017 19:08:14 +0000 (19:08 +0000)
commitcf16805a2f70026f24eb0b245666efcd4a7c8e44
tree531cb7e6a2237cc2b4e54c117a1a96827c6facac
parent28ec43c41ad034da3cec695017d69c36c706ec7b
ostree: Add collection and ref bindings to metadata on commit

The collection and ref bindings are stored in the commit metadata
under ostree.collection-binding and ostree.ref-binding,
respectively. They will be used to verify if the commit really comes
from the collection and ref we wanted to pull from.

Closes: #972
Approved by: cgwalters
src/libostree/ostree-repo-private.h
src/ostree/ot-builtin-commit.c
tests/basic-test.sh